package connexionOracle;
import java.sql.*;
/**
 *
 * @author p0904552
 */
public class AccesBD {

    
    private Connection connexionBD;
    public Statement st;
    private AccesBD()
    {
        connexionBD= ConnexionOracleFactory.creerConnexion(getClass().getResourceAsStream("connexion.properties"));
        try
        {
            st= connexionBD.createStatement();
        }
        catch(Exception e)
        {
            System.out.println(e);
        }
    }
    private static AccesBD instance= null;
    public static AccesBD getInstance()
    {if (instance == null)
         instance = new AccesBD();
     return instance;}
}
